﻿<!doctype html>
<html>
<head>
    <title>邮件详情</title>
    <meta charset="utf-8" />
    <meta http-equiv="description" content="ajax" />
    <link rel="stylesheet" href="../static/css/adaptCopy.css" />
    <link rel="stylesheet" href="../static/css/adapt.css" />
    <link rel="stylesheet" href="../static/css/navigit.css" />
    <link rel="stylesheet" href="../static/css/font-awesome.css" />
    <link rel="stylesheet" href="../static/css/font-awesome.min.css" />
    <script src="../static/js/adapt.js"></script>
    <script src="../static/js/jquery-3.3.1.min.js"></script>
    <!--//authorJen-->
</head>
<body>
    <div class="containtOut">
        <!--导航条-->
        <div class="barCont">
            <div class="barTop clearfix">
                <div class="topLeft">
                    <a href="">
                        <span class="iconImg icon-home"></span>
                        <span class="iconFont">首页</span>
                    </a>
                </div>
                <div class="topRight clearfix">
                    <div class="list list0"><a href=""><span class="listfont icon-group">部门管理</span></a></div>
                    <div class="list list1"><a href=""><span class="listfont icon-envelope">邮件管理</span></a></div>
                    <div class="list list2"><a href=""><span class="listfont icon-twitter">用户管理</span></a></div>
                    <div class="logInfo">
                        <span class="infoSelf icon-github-alt">EyesKiller</span>
                        <span class="logOut"><a href="">退出</a></span>
                    </div>
                </div>
            </div>
            <!--部门管理-->
            <div class="manageContrl">
                <div class="left">

                </div>
                <div class="right"></div>
            </div>
        </div>
        <div class="Body clearfix">
            <!--top-->
            <div class="body_top" att="top">
                <div class="b_tit">
                    <span class="tit_main">公司员工管理系统</span>
                    <!--<span class="logout logoutbloc">退出</span>-->
                    <span class="user logoutbloc">
                        <!-- CSATGentty -->
                    </span>
                </div>

            </div>
            <!--//End top-->
            <!--navicat-->
            <div class="nav">
                <div class="nav_border">
                    <div class="nav_tit">人力资源-功能菜单</div>
                    <div class="nav_list">
                        <div class="list_tit">员工记录 <i class="icon-chevron-down"></i></div>
                        <div class="list_det">
                            <div class="listil linkIframe" setf="subPage/staffRecord">查询所有员工记录</div>
                            <div class="listil linkIframe" setf="addStaff">增加员工记录   </div>
                            <!--  <div class="listil linkIframe "  setf="subPage/resetStaffInfo">修改员工信息</div>-->
                        </div>
                    </div>
                    <div class="nav_list">
                        <div class="list_tit">部门记录 <i class="icon-chevron-down"></i></div>
                        <div class="list_det">
                            <div class="listil linkIframe" setf="subPage/departRecord">查询所有部门记录</div>
                            <div class="listil linkIframe" setf="subPage/addDepart">增加部门</div>
                        </div>
                    </div>
                    <div class="nav_list">
                        <div class="list_tit">文件记录 <i class="icon-chevron-down"></i></div>
                        <div class="list_det">
                            <div class="listil linkIframe" setf="subPage/documRecord">查看所有文件上传信息</div>
                            <div class="listil linkIframe" setf="subPage/uploadDocum">上传文件</div>
                        </div>
                    </div>
                    <div class="nav_list">
                        <div class="list_tit">离退员工记录 <i class="icon-chevron-down"></i></div>
                        <div class="list_det">
                            <div class="listil linkIframe" setf="subPage/uncommonStatus">查看离退员工记录</div>
                        </div>
                    </div>
                </div>
            </div>
            <!--//End navicat-->


            <iframe class="frame" frameborder="0" att="navic" src="subPage/staffRecord.html"></iframe>

        </div>

        <!--foot-->
        <div class="foot">
            <p class="sty">&copy; 2018  All rights reserved | Design by <span class="designer">CSATGen</span> </p>
        </div>
        <!--End foot-->
    </div>
    <script type="text/javascript">

        $(function () {
            /*全局效果*/
            $(".compSubmit").hover(function () {
                $(this).css("backgroundColor", "#8631C7");
            }, function () {
                $(this).css("backgroundColor", "#551A8B");
            })

            $(".list_det").hide();
            for (i = 0; i < $(".list_det").length ; i++) { $(".list_det").eq(0).show(); }

            //$(".nav_list").hover(function () { $(".list_det").hide(); $(this).children($(".list_det")).show(); },
            //    function () { $(".list_det").hide(); })
            //$(".nav_border").hover(function () { }, function () {
            //    $(".list_det").hide();
            //    for (i = 0; i < $(".list_det").length ; i++) { $(".list_det").eq(0).show(); }
            //}
            $(".list_tit").click(function () {
                if ($(this).next($(".list_det")).is(":hidden")) {
                    $(this).next($(".list_det")).show();
                } else {
                    $(this).next($(".list_det")).hide();
                }
            })


            $(".listil").hover(function () { $(this).css("background-color", "rgba(30,144,255, 0.25)") }, function () { $(this).css("background-color", "rgba(100, 149, 237, 0)") });


            //console.log("frameset[" + i + "]wertyui=" + frameset[i]);
            //console.log(frameset[i])
            $(".linkIframe").click(function () {
                var setf = $(this).attr("setf");
                //console.log(setf);
                $(".frame").attr("src", setf + ".html")
            })

            //$(".linkIframe").click(function () {
            //    for (i = 0; i < $(".linkIframe").length; i++) {
            //        console.log($(this))
            //    }
            //})




            //$.ajax({
            //    type: "Post",
            //    url: "/hr_doc/servlet/LoginServlet",
            //    data: {
            //   	 Command:"user",
            //    },
            //    async: false,
            //    dataType: "json",
            //    success: function (d) {
            //    	console.log(d);
            //   	 if(d.code == 1){
            //   		$(".user").html(d.result.nickname);
            //   		 //location.href = location.reload();
            //   	 }else{
            //   		 location.href = "/hr_doc/login.html";
            //   	 }
            //    },
            //    error: function (xmlHttpRequest, textStatus, errorThrown) {
            //    	location.href = "/hr_doc/login.html";
            //    }
            //});




        })
        $(".logout").click(function () {

            $.ajax({
                type: "Post",
                url: "/hr_doc/servlet/LoginServlet",
                data: {
                    Command: "logout",
                },
                async: false,
                dataType: "json",
                success: function (d) {
                    console.log(d);
                    if (d.code == 1) {
                        //location.href = location.reload();
                        location.href = "/hr_doc/login.html";
                    }
                },
                error: function (xmlHttpRequest, textStatus, errorThrown) {
                    //location.href = "/hr_doc/login.html";
                }
            });


        });

    </script>
</body>
</html>